package com.xhj.client.impl;

import com.xhj.client.VodClient;
import com.xhj.util.ResultEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class VodClientHystrixImpl implements VodClient {
    @Override
    public ResultEntity deleteById(String videoId) {
        log.warn("hystrix...");
        return ResultEntity.failedWithMessage("time out");
    }

    @Override
    public ResultEntity deleteVideoList(List<String> videoIdList) {
        log.warn("hystrix...");
        return ResultEntity.failedWithMessage("time out");
    }
}
